import request from '@/utils/request'

export function getProducts(data) {
  return request({
    url: 'store/list',
    method: 'post',
    data
  })
}

export function addProducts(data) {
  return request({
    url: 'store/add/product',
    method: 'post',
    data
  })
}

export function editProducts(data) {
  return request({
    url: 'store/edit',
    method: 'post',
    data
  })
}

export function addSKU(data) {
  return request({
    url: 'store/add/productKeeping',
    method: 'post',
    data
  })
}

export function editSKU(data) {
  return request({
    url: 'store/edit/productKeeping',
    method: 'post',
    data
  })
}

export function getSKU(data) {
  return request({
    url: 'store/productKeeping/list',
    method: 'post',
    data
  })
}

/**查询商品列表*/
export function searchProduct(data) {
  return request({
    url: 'product/list',
    method: 'post',
    data
  })
}
